import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { IndexBar, IndexAnchor, Icon, Checkbox, CheckboxGroup, Cell, Search, CellGroup, List, Dialog, Swipe, Grid, SwipeItem, GridItem, Tabbar, TabbarItem, NavBar, Form, Field, Toast, Button, Uploader, Picker, Popup, DropdownMenu, DropdownItem, Loading } from 'vant'
import BaiduMap from 'vue-baidu-map'

Vue.use(Loading)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Popup)
Vue.use(Picker)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(Icon)
Vue.use(Uploader)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Search)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(List)
Vue.use(Dialog)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(GridItem)
Vue.use(Grid)
Vue.use(Button)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Toast)

Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'hUQwAThUgChE5N4XryeRjp3e6X4x61ln'
})
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
